home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
pdcurs21.zip
/
PORTABLE.ZIP
/
SET_TERM.C
< prev
next >
Wrap
Text File
|
1992-11-21
|
2KB
|
61 lines
#define CURSES_LIBRARY 1
#include <curses.h>
#undef set_term
#ifndef NDEBUG
char *rcsid_set_term = "$Header: c:/curses/portable/RCS/set_term.c%v 2.0 1992/11/15 03:29:15 MH Rel $";
#endif
#if EMALLOC
void* emalloc( size_t );
void* ecalloc( size_t, size_t );
void efree( void* );
#endif
/*man-start*********************************************************************
set_term() - switch between terminals
X/Open Description:
This function is used to switch between different terminals.
The screen reference 'new' becomes the new current terminal.
The previous terminal is returned by the routine. This is the
only routine which manipulates SCREEN pointers; all other routines
affect only the current terminal.
PDCurses Description:
FYI: Dual monitor support is not quite complete. Nothing will
happen if you try to call this routine.
X/Open Return Value:
The set_term() function returns a pointer to the previous
SCREEN structure on success otherwise a NULL pointer is
returned.
X/Open Errors:
No errors are defined for this function.
PDCurses Errors:
It is an error to call this routine at this time.
It is an error to pass a NULL SCREEN pointer.
Portability:
PDCurses SCREEN* set_term( SCREEN* new );
X/Open Dec '88 SCREEN* set_term( SCREEN* new );
BSD Curses
SYS V Curses SCREEN* set_term( SCREEN* new );
**man-end**********************************************************************/
SCREEN* set_term( SCREEN *new )
{
#ifdef TC
# pragma argsused
#endif
return( &_cursvar ); /* We only have one screen supported right now */
}